package edu.ilstu.mind.ise.ccp.message;

public interface Message {
	String getFrom();
	String getTo();
	
	byte[] getBytesField(String key) throws MessageFieldFormatException;
	String getStringField(String key) throws MessageFieldFormatException;
	boolean getBooleanField(String key) throws MessageFieldFormatException;
	byte getByteField(String key) throws MessageFieldFormatException;
	char getCharField(String key) throws MessageFieldFormatException;
	short getShortField(String key) throws MessageFieldFormatException;
	int getIntField(String key) throws MessageFieldFormatException;
	long getLongField(String key) throws MessageFieldFormatException;
}
